#include <QCoreApplication>
#include "NYPizzaStore.h"
#include "NYPizzaFactory.h"

#include "ChicagoPizzaFactory.h"

void SimpleFactoryExtend()
{
    NYPizzaFactory *nyPizzaFactory = new NYPizzaFactory();
    PizzaStore *nyPizzaStore = new PizzaStore(nyPizzaFactory);
    nyPizzaStore->orderPizza("cheese");

    ChicagoPizzaFactory *chicagoPizzaFactory = new ChicagoPizzaFactory();
    PizzaStore *chicagoPizzaStore = new PizzaStore(chicagoPizzaFactory);
    chicagoPizzaStore->orderPizza("cheese");

}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    SimpleFactoryExtend();
    return a.exec();
}
